const mongoose = require('../db');
const Schema = mongoose.Schema;

const roleSchema = new Schema({
  name: { type: String, require: true },
  value: { type: String, require: true },
  menus: { type: Array, require: true }
})

const roleModel = mongoose.model('role', roleSchema);

module.exports = roleModel;
